package org.springcloud.wisdom.spring_02_classroom.student.attendence.change;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springcloud.wisdom.spring_02_classroom.student.attendence.entity.AttendenceEntity;

@Mapper
public interface AttendenceMapper {

    // 更新签到次数
    @Update("UPDATE attendence SET signcount = #{signcount} WHERE sid = #{sid}")
    int updateSignCount(AttendenceEntity attendenceEntity);
}
